<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 商户列表 </nav>
<div class="page-container">


  <div class="mt-20">
       <div class="cl pd-5 bg-1 bk-gray mt-20">
        <div class="text-c">
          <form action="{:url('deal/index')}" method="get">
                    <span class="select-box inline">
                           <select name="category_id" class="select">
                            <option value="0">顾客名称</option>
                            
                          </select>
                    </span>
                    <span class="select-box inline">
                            <select name="city_id" class="select">
                                <option value="0">商品名称</option>
                                
                              </select>
                    </span> 日期范围：
          <input type="text" name="start_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="" style="width:120px;" >
          -
          <input type="text" name="end_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value=""  style="width:120px;">
          <input type="text" name="name" id=""  value="" placeholder="订单号" style="width:250px" class="input-text">
          <button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索
          </button>
            </form>
        </div>
      </div>
	<table class="table table-border table-bordered table-bg table-hover table-sort">
	  <thead>
	  <tr class="text-c">
		<th width="80">ID</th>
                <th width="100">商品名称</th>
		<th width="100">订单号</th>
		<th width="30">微信返回订单号</th>
		<th width="150">顾客名称</th>
		<th width="60">支付时间</th>
		<th width="60">商品数量</th>
                <th width="60">支付状态</th>
                <th width="60">总价</th>
                <th width="60">订单状态</th>
                <th width="60">订单创建时间</th>
		<th width="40">操作</th>
	  </tr>
	  </thead>
	  <tbody>
	  {volist name="data" id="vo"}
	  <tr class="text-c">
		<td>{$vo.id}</td>
		<td>{$dealArrs[$vo.deal_id]}</td>
		<td class="text-c">{$vo.out_trade_no}</td>
		<td class="text-c">{$vo.transaction_id}</td>
		<td class="text-c">{$userArrs[$vo.user_id]}</td>
		<td class="td-status">{$vo.pay_time}</td>
                <td class="text-c">{$vo.deal_count}</td>
		<td class="text-c">{$vo.pay_status|pay_status}</td>
                <td class="text-c">{$vo.total_price}</td>
		<td class="text-c">{$vo.status|order_status}</td>
                <td class="text-c">{$vo.create_time}</td>
		<td class="td-manage">
                   <a style="text-decoration:none" class="ml-5" onClick="o2o_edit('删除','{:url('order/status',['id'=>$vo.id, 'status'=>-1])}','',300)" href="javascript:;" title="删除">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a>
                </td>
	  </tr>
	  {/volist}

	  </tbody>
	</table>
  </div>
    <!--调用分页-->
  {:pagination($data)}

  <!--包含头部文件-->
  {include file="public/footer" /}
